package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * @program: springboot_course
 * @description: 角色实体类
 * @author: ChenZhiXiang
 * @create: 2019-06-10 15:44
 **/
@Document(collection = "role")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role implements Serializable {

    private static final long serialVersionUID = -3528939811175354255L;

    @Id
    private Integer id;

    @Field("role_name")
    private String roleName;

    private String note;
}
